package com.example.zhu.mapper;

import com.example.zhu.dto.OrderDTO;
import com.example.zhu.entity.TakeOrders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderDetailMapper {

    @Update("update orders_detail set phone = #{phone},address=#{address} where order_id = #{id}")
    void updatePhoneAndAddress(OrderDTO orderDTO);

    @Select("select * from take_orders where number = #{number}")
    TakeOrders selectByNumber(Long number);
}
